package com.chinasoft.ecommerceconsumptionanalysissystem.service.impl;

import com.chinasoft.ecommerceconsumptionanalysissystem.mapper.CtByWeekMapper;
import com.chinasoft.ecommerceconsumptionanalysissystem.pojo.CtByWeek;
import com.chinasoft.ecommerceconsumptionanalysissystem.service.CtByWeekService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CtByWeekServiceImpl implements CtByWeekService {
    @Autowired
    private CtByWeekMapper ctByWeekMapper;

    @Override
    public List<CtByWeek> selectAll() {
        return ctByWeekMapper.selectAll();
    }

    @Override
    public int insert(CtByWeek ctByWeek) {
        return ctByWeekMapper.insert(ctByWeek);
    }
}
